package com.example.java_chatroom.service;

import com.example.java_chatroom.mapper.FriendMapper;
import com.example.java_chatroom.model.Friend;
import jakarta.annotation.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendService {
    @Resource
    FriendMapper friendMapper;

    public List<Friend> selectFriendList(int userId){
        return friendMapper.selectFriendList(userId);
    }
}
